<template>
  <div>
    <my-father></my-father>
    <my-ceshi></my-ceshi>
  </div>
</template>

<script>
import MyFather from "@/components/MyFather.vue";
import MyCeshi from "@/components/MyCeshi.vue";
export default {
  provide: {
    msg: "hello",
  },
  components: { MyFather, MyCeshi },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped></style>


// 1. 一个组件充当发布者
// 2. 一个组件充当订阅者
// 3. 需要一个事件中心